package Mains;

import Contracts.BlocServiceContract;
import Impl.Bloc;
import Impl.Type;
import Services.BlocService;

public class MainContractBlocService {
	public static void main(String[] args){
		BlocService bloc = new Bloc();
		BlocService newBloc = new Bloc();
		BlocServiceContract contratBloc = new BlocServiceContract(bloc);
		
		contratBloc.init(Type.Hero);
		contratBloc.getType();
		contratBloc.getOldType();
		contratBloc.ChangeType(Type.Mur);
		newBloc.clone(contratBloc);
		
		if(newBloc.equals(contratBloc)){
			System.out.println("contrat OK");
		}
	}
}
